package com.yimixian.app.model;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

public class GoodsItem {

    public long groupId;
    public String groupTitle;
    public String deliverTitle;
//    public String serviceText;
    public List<CartUpdateDescription> simpleDesc = new ArrayList<>();
    public boolean isNeedBuy;
    public int id;
    public String name;
    public String img;
    public float imgRatio;
    public String promotionImg;
    public String descUrl;
    public String unitDesc;
    public String saleStatus;
    public String unitPrice;
    public String unitOldPrice;
    public String price;//价格
    public String totalPrice;
    public int shouldBuyCount;
    public String stockCount = "";
    public String count;
    public boolean hideTotalPrice;
    public int isBuyingGroup;
    public int buyingGroupCount;
    public float buyingGroupPrice;
    public GoodsGiftType typeGift;
    public boolean isActivated = true;
    public String tips = "";
    public String itemAttr = "";
    public String textIndent = "";

    public boolean canComment; //这个字段只是订单详情中需要的是否可以评价的字段
    public String tasteDesc = "";
    public String freshnessDesc = "";

    public String sortId;//所属分类的id
    public String sortName;//所属分类的名称
    public long remaining_time;//预售商品的倒计时，开售时间 减 当前时间的 差值（秒）。
    public long start_time;//预售商品的开售时间

    //2.1新加字段
    public String countZeroReason  = "";
    public String canNotBuyReason = "";

    //2.2新加字段
    public String but_name;
    public String pici;

    //2.3.0
    public String giftDesc;
    public ArrayList<PromotionInfo> promotionInfos;

    public static class GoodsGiftType {
        public final float minTotalPrice;

        public GoodsGiftType(
                float minTotalPrice) {
            this.minTotalPrice = minTotalPrice;
        }
    }

    public long getGroupId(){
        return groupId;
    }
}
